<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<form id="pagerForm" method="post" action="<%=basePath%>customer/pager_History.action" >
	<input type="hidden" name="pager.pageNum" value="1" />
	<input type="hidden" name="pager.numPerPage" value="${pager.numPerPage}" />
	<input type="hidden" name="pager.orderField" value="${pager.orderField}" />
	<input type="hidden" name="pager.orderDirection" value="${pager.orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" class="pageForm required-validate" action="find_History" namespace="historyManager"  method="post">
	<div class="searchBar">
		<div class="subBar">
			<ul>
				<li><a class="button" href="<%=basePath%>customer/seniorQuery.jsp" target="dialog" mask="true" title="查询框"><span>检索</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=basePath%>customer/historyAdd.jsp" target="navTab"><span>添加</span></a></li>
 			<li><a class="delete" href="<%=basePath%>customer/del_History.action?history.mrId={sid_user}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一个记录"><span>删除</span></a></li>
			<li><a class="edit" href="<%=basePath%>customer/find_History.action?history.mrId={sid_user}" target="navTab" warn="请选择一个用户"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="#" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
			<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
		</ul>
	</div>

	<div id="w_list_print">
<table class="list" width="98%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="55" align="center" orderField="mrId" class="asc">病史记录号</th>
				<th width="50" align="center" orderField="customerId" class="desc">客户编号</th>
				<th width="150" align="center" >药物过敏史</th>
				<th width="150" align="center" >危险环境接触史</th>
				<th width="150" align="center" >既往病史</th>
				<th width="150" align="center" >既往手术</th>
				<th width="100" align="center" >既往外伤</th>
				<th width="100" align="center" >既往输血</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator id="history" value="historyList">
				<tr target="sid_user" rel="<s:property value="#history.mrId"/>">
					<td align="center"><s:property value="#history.mrId"/></td>
					<td align="center"><s:property value="#history.cinfo.customerId"/></td>
					<td align="center"><s:property value="#history.drugAllery"/></td>
					<td align="center"><s:property value="#history.envExplosure"/></td>
					<td align="center"><s:property value="#history.pastIllness"/></td>
					<td align="center"><s:property value="#history.pastSurgery"/></td>
					<td align="center"><s:property value="#history.pastInjury"/></td>
					<td align="center"><s:property value="#history.pastTransfusion"/></td>
				</tr>
			</s:iterator>
			
		</tbody>
	</table>
	
	</div> 
		<div class="panelBar" >
		<div class="pages">
			<span>显示</span>
			<select name="numPerPage" 
				onchange="javascript:dwzPageBreak({data:{numPerPage:this.value}})">
				<option value="10" >10</option>
				<option value="20" selected="selected">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span>条，共<s:property value="pager.totalCount"/>条</span>
		</div>
		<s:if test="pager.numPerPage!=''">
			<script type="text/javascript">
			setNumPerPage({numPerPage:<s:property value="pager.numPerPage"/>});
			</script>
		</s:if>
		<div class="pagination" targetType="navTab" 
			totalCount=<s:property value="pager.totalCount"/> 
			numPerPage="<s:property value="pager.numPerPage"/>" 
			pageNumShown="<s:property value="pager.pageNumShown"/>" 
			currentPage="<s:property value="pager.currentPage"/>">
		</div>

	</div>
</div>